{include file="public/head"/}
  
  <body>
    <div class="x-body">
        <form class="layui-form" action="{:url('admin/Community/communityEdit')}" method="post" enctype="multipart/form-data">
            <input type="hidden" name="id"  value="{$info.id}" />
            <div class="layui-form-item">
                <label for="username" class="layui-form-label">
                    <span class="x-red">*</span>区域名称:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="username" name="name" required="" lay-verify="required"
                    autocomplete="off" class="layui-input"  style="width: 300px;" value="{$info.name}">
                </div>
            </div>

            <div class="layui-form-item">
                <label for="username" class="layui-form-label">
                    <span class="x-red">*</span>所属商户:
                </label>
                <div class="layui-input-inline" style="width: 300px;">
                    <select name="property_id">
                        <option value=""><------选择商户------></option>
                        {foreach $property as $pro}
                        <option value="{$pro.id}" {if $info.property_id == $pro.id} selected="selected" {/if}>{$pro.merchant_name}</option>
                        {/foreach}
                    </select>
                </div>
            </div>

            <div class="layui-form-item">
                <label for="username" class="layui-form-label">
                    <span class="x-red">*</span>联系人员:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="username" name="contact" required="" lay-verify="required"
                    autocomplete="off" class="layui-input"  style="width: 300px;" value="{$info.contact}">
                </div>
            </div>

            <div class="layui-form-item">
                <label for="username" class="layui-form-label">
                    <span class="x-red">*</span>联系电话:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="username" name="phone" required="" lay-verify="required"
                    autocomplete="off" class="layui-input"  style="width: 300px;" value="{$info.phone}">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="username" class="layui-form-label">
                    <span class="x-red">*</span>区域地址:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="username" name="address" required="" lay-verify="required"
                    autocomplete="off" class="layui-input"  style="width: 300px;" value="{$info.address}">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="L_repass" class="layui-form-label">
                </label>
                <button  class="layui-btn" lay-filter="add" lay-submit="">
                    修改区域
                </button>
            </div>
        </form>
    </div>
    <script>var _hmt = _hmt || []; (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
      })();</script>
  </body>

</html>